package com.cos.shop.services.impl;

import com.cos.shop.common.ResponseResult;
import com.cos.shop.dao.TypeDao;
import com.cos.shop.dao.impl.TypeDaoImpl;
import com.cos.shop.services.TypeServices;

import java.sql.SQLException;

/**
 * @author: COS
 * @time: 2023/5/11 10:12
 * @description:
 */
public class TypeServicesImpl implements TypeServices {
    private TypeDao td = new TypeDaoImpl();
    @Override
    public ResponseResult getAll() {
        try {
            return ResponseResult.createSuccess(td.getAll());
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
